/*
 * @Author: new-wang
 * @Date: 2023-06-16 14:13:08
 * @LastEditors: new-wang
 * @LastEditTime: 2023-06-16 17:10:32
 * @Description: 
 */
import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)


let routers = require.context('./modules',true,/\.route\.js/);
let arr = [];
routers.keys().forEach(key => {
    arr = arr.concat(routers(key).default);
});


const router = new VueRouter({
  mode: "history",
  routes:[
    ...arr
  ]
})

export default router